<?php
	class newMessagepage
	{
		public $page;

		public function __construct()
		{
				$this->page['title'] = "new post";
				$this->page['content'] = "<form name='newPost' action='?page=submitMessage' enctype='multipart/form-data' method='post'>
	<label for='title'>Title: </label> <input type='text' name='title' /><br />
	<label for='summary'>Summary: </label> <textarea name='summary' cols='40' rows='5'></textarea><br />
	<label for='content'>content: </label><textarea name='content' cols='40' rows='10'></textarea><br />
	<label for='tumbnail'>tumbnail: </label> <input type='file' name='tumbnail' /><br />
	<input type='submit' name='submit' value='submit' /><br />
</form>";
		}

		public function getPage()
		{
			$page = $this->page;
			require_once("templates/Main.php");
		}
	}
?>